import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { FlexComponent } from './flex.component';
import { HomeComponent } from './home/home.component';
import { StaticComponent } from './static/static.component';
import { ResponsiveComponent } from './responsive/responsive.component';

const routes: Routes = [
  {
    path: '', component: FlexComponent,
    children: [
      { path: '', redirectTo: 'home', pathMatch: 'full' },
      { path: 'home', component: HomeComponent },
      { path: 'static', component: StaticComponent },
      { path: 'responsive', component: ResponsiveComponent }
    ]
  }
];

@NgModule({
  imports: [ RouterModule.forChild(routes) ],
  exports: [ RouterModule ]
})
export class FlexRoutingModule {
}
